﻿@using A2.ERP.Models
@{
    t_ServiceInfo serviceInfo = ViewBag.ServiceInfo;
    t_ServiceType serviceType = ViewBag.ServiceType;
}

<section id="serviceInfo">
    <div class="card text-center">
        <div class="card-header">
            <i class="SkyUI icon-article"></i>
            @serviceInfo.ServiceTitle

        </div>
        <div class="card-body">
            <div class="content">
                @serviceInfo.Content
            </div>
            
        </div>
        <div class="card-footer text-muted">
            <span>
                <i class="SkyUI icon-time-circle"></i>
                发布时间:
                @serviceInfo.CreateDate
            </span>
            <span>
                <i class="SkyUI icon-user"></i>
                发布者:
                @serviceInfo.UserName
            </span>
            <span>
                <i class="SkyUI icon-user"></i>
                受理人：@serviceInfo.AuditingUser
            </span>
            <span>
                问题类型：@serviceType.ServiceName
            </span>
            <span>
                受理状态：@serviceInfo.State
            </span>
        </div>        
    </div>
    <div class="card">
        <div class="card-header">
            <i class="icon SkyUI icon-chat"></i>
            讨论内容
        </div>
        <div class="card-body">
            <div class="relpy-info">
                @if (string.IsNullOrEmpty(serviceInfo.ReplyInfo.Trim()))
                {
                    <p>暂无讨论.</p>
                }
                else
                {
                    @Html.Raw(serviceInfo.ReplyInfo)
                }
            </div>
        </div>
    </div>
    <div class="input-group mb-3">
        <input type="text" class="form-control" placeholder="Enter Message">
        <div class="input-group-append">
            <button class="btn btn-primary" type="button" id="button-addon2">留言</button>
        </div>
    </div>
</section>